package com.mrdeer.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mrdeer.user.api.dto.menu.MenuDTO;
import com.mrdeer.user.api.dto.menu.MenuQueryDTO;
import com.mrdeer.user.api.dto.resource.ResourceAppDTO;
import com.mrdeer.user.api.entity.ResourceMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/8 0008 9:32
 */
@Repository
public interface ResourceMenuMapper extends BaseMapper<ResourceMenu> {

    int selectResourceByApplicationCode(@Param("applicationCode") String applicationCode);

    List<MenuDTO> selectByPage(@Param("page") Page<MenuDTO> page, @Param("params") MenuQueryDTO params);

    List<ResourceAppDTO> selectResource(@Param("pCodes") List<String> pCodes);

    //只查资源菜单

    //只查应用
}
